package 第八章课后作业;

import java.util.Scanner;

import javax.xml.ws.handler.MessageContext.Scope;

public class 第一题 {

	public static void main(String[] args) {
		boolean flag=false;
	 int[]scores=new int[5];
	 int num=0;
	 Scanner input=new Scanner(System.in);
     for(int i=0;i<scores.length;i++) {
    	 System.out.println("输出"+(i+1)+"位整数");
    	 scores[i]=input.nextInt();
     }
	 Scanner input1=new Scanner(System.in);
	 System.out.println("输出下标为奇数的数：");
	    int Guest = input1.nextInt();
	    boolean b = true; 
	    for (int i = 0; i < scores.length; i += 2  ) {
	    	if (Guest == scores[i]) { 
	    		System.out.println("下标为奇数的:" + i);
	    		b = false;
	    		} 
	    	} if (b) { 
	    		System.out.println("");
	    		} 
	 

	
	}
}
